import request from '../../../src/utils/request';
//枚举定义接口地址
enum API {
    TRADE = '/order/auth/trade',//获取订单详情
    SUBMIT = '/order/auth/submitOrder?tradeNo'//提交订单
}

//获取订单详情
export const reqTrade = () => request.get(API.TRADE);
//提交订单
export const reqSubmitOrder = (tradeNo: any, data: any) => request.post(API.SUBMIT + `=${tradeNo}`, data)

